<script>

    $(function () {

        var form = new Vue({
            el:'#article',
            data:{
                doSubmit:false,
                price:'',
                message:'',
            },
            mounted:function(){
            },
            methods:{
                submit:function(event){
                    if (!inputForm_validator.form()){
                        return;
                    }
                    this.doSubmit = true;
                }
            },
            components:{
            }
        });

        var validator = $("#form").validate({
            rules: {
                price:{
                    required:true,
                    number:true,
                    min:window.offer_minimum,
                },
            },
            messages: {
                price:{
                    required:'请填写合理报价金额'
                },
            },
            submitHandler: function(form) {
                form.submit();
            },
        });

        var inputForm_validator = $("#inputForm").validate({
            rules: {
                price:{
                    required:true,
                    number:true,
                    min:window.offer_minimum,
                },
            },
            messages: {
                price:{
                    required:'请填写合理报价金额'
                },
            },
        });
    });
</script>